package de.tabuma.soap.entity.wsdl;

import de.tabuma.soap.entity.*;
import java.util.*;
import de.tabuma.soap.annotation.*;
import de.tabuma.soap.logik.*;
import java.io.*;
import javax.jdo.annotations.*;



/**
 * @author $Author: alefen $
 * @version $Revision: 1.1 $
 * @since $Date: 2009/12/30 02:57:12 $
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@SoapClassDefinition(@SoapClassMapping(mappingString="message",mappingType=SoapClassMapping.MappingType.WSDL))
public class TMessage implements Serializable {

    public TMessage() {        
        this.part = new ArrayList<Long>();
        this.tExtensibleDocumentedId = new Long(0);
    }

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    public Long getId() {
        return id;
    }

    @Persistent
    @SoapExtendsDefinition(extendsClass=TExtensibleDocumented.class)
    private Long tExtensibleDocumentedId;
    public Long getTExtensibleDocumentedId() {
        return tExtensibleDocumentedId;
    }
    public void setTExtensibleDocumentedId(Long tExtensibleDocumentedId) {
        this.tExtensibleDocumentedId = tExtensibleDocumentedId;
    }
    
    @Persistent
    @SoapFieldDefinition(@SoapFieldClass(classDefinition=TPart.class))
    protected List<Long> part;
    public List<Long> getPart() {
        if(this.part==null) {
            this.part = new ArrayList<Long>();
        }
        return this.part;
    }
    public void setPart(List<Long> part) {
        this.part = part;
    }

    @Persistent
    @SoapAttribute
    protected String name;
    public String getName() {
        return name;
    }
    public void setName(String value) {
        this.name = value;
    }
}
